<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>优信通用户经销商权限编辑</title>

    <link href="/static/hplus/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/static/hplus/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/static/hplus/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/static/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css">
    <link href="/static/jquery-select2/4.0.2/css/select2.min.css" rel="stylesheet">


    <link href="/static/hplus/css/animate.min.css" rel="stylesheet">
    <link href="/static/hplus/css/style.min862f.css?v=4.1.0" rel="stylesheet">


</head>
<body class="hideScroll">
	<form:form id="inputForm" modelAttribute="sysUserdealerprivilege" action="${ctx}/fx/sysUserdealerprivilege/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>

		<div class="wrapper wrapper-content animated fadeInRight">



                    <label class="col-sm-2 control-label"><span class="help-inline"><font color="red">*</font> </span> dealerprivilegeid：</label>

                        <div class="col-sm-4">

                        <form:input path="dealerprivilegeid" htmlEscape="false" maxlength="32" class="form-control input-xlarge required"/>


                    </div>

                    </div>



                        <div class="form-group">


                    <label class="col-sm-2 control-label"><span class="help-inline"><font color="red">*</font> </span> userid：</label>

                        <div class="col-sm-4">

                        <form:input path="userid" htmlEscape="false" maxlength="32" class="form-control input-xlarge required"/>


                    </div>






                    <label class="col-sm-2 control-label"><span class="help-inline"><font color="red">*</font> </span> dealerrelationid：</label>

                        <div class="col-sm-4">

                        <form:input path="dealerrelationid" htmlEscape="false" maxlength="11" class="form-control input-xlarge required"/>


                    </div>

                    </div>



                        <div class="form-group">


                    <label class="col-sm-2 control-label"><span class="help-inline"><font color="red">*</font> </span> dealerprivilegekind：</label>

                        <div class="col-sm-4">

                        <form:input path="dealerprivilegekind" htmlEscape="false" maxlength="1" class="form-control input-xlarge required"/>


                    </div>





    </div>

	</form:form>

    <script src="/static/hplus/js/jquery.min63b9.js?v=2.1.4"></script>
    <script src="/static/hplus/js/bootstrap.min14ed.js?v=3.3.6"></script>
    <script src="/static/hplus/js/content.mine209.js?v=1.0.0"></script>
    <script src="/static/hplus/js/plugins/iCheck/icheck.min.js"></script>

    <script src="/static/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script src="/static/jquery-select2/4.0.2/js/select2.min.js" type="text/javascript"></script>

    <script src="/static/jquery-validation/1.14.0/jquery.validate.min.js" type="text/javascript"></script>
    <script src="/static/jquery-validation/1.14.0/localization/messages_zh.min.js" type="text/javascript"></script>

    <script src="/static/jquery-validation/jQueryValidateExtend.js" type="text/javascript"></script>

    <script src="/static/hplus/js/plugins/suggest/bootstrap-suggest.min.js"></script>
    <script src="/static/layer-v2.3/layer/layer.js"></script>
    <script src="/static/common/javafast.js" type="text/javascript"></script>

	<script type="text/javascript">
		var validateForm;
		function doSubmit(){//回调函数，在编辑和保存动作时，供openDialog调用提交表单。
		  if(validateForm.form()){
			  $("#inputForm").submit();
			  return true;
		  }

		  return false;
		}

		$(document).ready(function() {
			//$("#name").focus();
			validateForm = $("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});


			$("select").select2();
		});
	</script>
</body>
</html>